package com.controller;

import com.domain.vote.Article;
import com.google.common.collect.Lists;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 */
@RequestMapping("article")
@RestController
public class ArticleController {
    /**
     *
     */
    static List<Article>  articles = null;

    @GetMapping("all")
    public List<Article> getAll(){
        return articles;
    }

    @RequestMapping("vote/{id}")
    public void vote(@PathVariable("id")int articleid){

    };

}
